<template>
    <div>
        <van-swipe :autoplay="3000" height="150" indicator-color="white">

            <van-swipe-item>
                <img src="../../assets/1.jpg" alt="" class="swiper_imgs" />
            </van-swipe-item>
            <van-swipe-item>
                <img src="../../assets/2.jpg" alt="" class="swiper_imgs" />
            </van-swipe-item><van-swipe-item>
                <img src="../../assets/3.jpg" alt="" class="swiper_imgs" />
            </van-swipe-item>
        </van-swipe>
        <div class="main">
            <van-cell-group inset>
                <van-cell title="正在热映" value="全部o部" />
                <van-cell title="即将上映" value="全部o部" />
            </van-cell-group>
        </div>

    </div>
</template>

<script setup lang="ts">
import { ref, onMounted } from "vue";
import { getMovieList } from "../../api/home";

const MovieList = ref<any>([])

const getMovieLists = async () => {

    const { data }: any = await getMovieList()
    MovieList.value = data?.data
}
onMounted(async () => {
    // await putuser()
    getMovieLists()


})
</script>

<style scoped>
.main {
    width: 100%;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    padding-top: 0.25rem;
    padding-bottom: 0.8rem;
    position: relative;
    top: -0.25rem;
    background-color: #fff;
    z-index: 998;
}

/deep/ .van-cell {
    font-size: 0.3125rem;
    padding: 0.1rem 0.25rem rem;
    border-bottom: 0.08rem solid #f5f5f5;
}

/deep/ .van-cell__title {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;

    font-weight: 600;
}

.swiper_imgs {
    width: 100%;
    height: 100%;
}
</style>
